<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="template" tagdir="/WEB-INF/tags" %>

<fmt:setBundle basename="StripesResources" />

<stripes:form beanclass="se.recept.kollen.module.bean.ProductActionBean" id="saveCategoryForm" >

    <stripes:hidden name="errorfragment" value="saveCategoryForm#/site/product/category-form.jsp" />

    <stripes:hidden name="fragment" value="saveCategoryForm#/site/product/category-form.jsp" />
    <stripes:hidden name="fragment" value="category-tree-root#/site/product/category-tree.jsp" />


    <div class="form-group">
        <label for="productMainCategory"><fmt:message key="product.main.category" /></label>
        <stripes:hidden id="productMainCategoryId"  name="mainCategory.id" />
        <stripes:text id="productMainCategory" class="form-control" name="mainCategory.name" disabled="true"  />
    </div>

    <div class="form-group">
        <stripes:errors field="productCategory.name" />
        <label for="productCategory"><fmt:message key="product.category.name" /></label>
        <stripes:text id="productCategoryName" class="form-control" name="productCategory.name" disabled="false"  />
    </div>

    <stripes:submit id="saveCategoryButton" name="addCategory" class="btn btn-default"><fmt:message key="common.submit" /></stripes:submit>
</stripes:form>

